import com.sun.tools.javac.Main;

import java.util.Scanner;

/**
 * @author 8zhazha8
 * @create 2021-04-24-20:41
 */
public class HomeoWork2 {

        public static void main(String[] args) {
                Scanner input=new Scanner(System.in);
                System.out.println("请输入半径");
                float radius =input.nextFloat();
                float r=r(radius);
        }

        public static float r(Float radius) {
                float pi=(float) 3.14;
                float c=pi*(radius*2);
                System.out.println("周长是："+c);
                float s=pi*(radius*radius);
                System.out.println("面积是："+s);
                return 0;
        }
}
